package com.qiche.mapper;

import com.qiche.common.MyMapper;
import com.qiche.model.Resources;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Mapper
@Repository
public interface ResourcesMapper extends MyMapper<Resources> {

     List<Resources> queryAll();

     List<Resources> loadUserResources(Map<String,Object> map);

     List<Resources> queryResourcesListWithSelected(@Param("rid") Integer rid,@Param("prid") Integer prid);

     List<Resources> queryTopResourcesListWithSelected(@Param("rid") Integer rid);
}